﻿Public Class InstructorHome
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        SqlDataSource1.SelectParameters.Item(0).DefaultValue = Membership.GetUser.UserName
        GridView1.DataBind()
    End Sub

    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
        Response.Redirect("ViewRosters.aspx?id=" + GridView1.SelectedRow.Cells(2).Text)
    End Sub

    Protected Sub viewProfileButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles viewProfileButton.Click
        Response.Redirect("ViewProfile.aspx")
    End Sub

    Protected Sub homeButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles homeButton.Click
        Response.Redirect("InstructorHome.aspx")
    End Sub

   

   
End Class